package com.info33.platform.business.dialogue.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.business.dialogue.dto.AiSessionRecordDTO;
import com.info33.platform.business.dialogue.entity.AiSessionRecord;
import com.info33.platform.common.mvc.vo.Result;

import java.io.IOException;
import java.util.List;

/**
 * @author LF
 * @date 2023-10-16 10:09:15
 */
public interface AiSessionRecordService extends IService<AiSessionRecord> {

    /**
     * 提问
     *
     * @param dto 参数
     * @return Result<String>
     * @throws IOException 异常抛出
     */
    Result<String> askQuestion(AiSessionRecordDTO dto) throws IOException;

    /**
     * 易知微-记录列表
     * @return
     */
    List<JSONObject> recordList();

    /**
     * MP根据ID修改测试
     *
     * @param dto 参数
     * @return Result<?>
     */
    Result<?> updateTest(AiSessionRecordDTO dto);

    /**
     * mybatisPlus流式查询测试
     *
     * @return Result<?>
     */
    Result<?> streamingQuery();
}
